﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TianShu;

namespace TianShu.SysParameterSetting.Service.Abstracts.Dto
{
    public class WmsMaterialOfWarehouseImportOutput
    {
        public WmsMaterialOfWarehouseImportOutput()
        {

        }
        public WmsMaterialOfWarehouseImportOutput(WmsMaterialOfWarehouseImportInput importInput,string importResult)
        {
            this.ImportResult = importResult;
            this.IsVirtual = importInput.IsVirtual;
            this.MaterialCode = importInput.MaterialCode;
            this.Qty = importInput.Qty;
            this.ProductionOrderBatches = importInput.ProductionOrderBatches;
            this.ProductionTime = importInput.ProductionTime;
            this.Sloc = importInput.Sloc;
            this.SpaceNamePath = importInput.SpaceNamePath;
            this.ValidDateTime = importInput.ValidDateTime;
            this.WarehouseCode = importInput.WarehouseCode;
        }
        ///<summary>
        ///<para>是否虚拟物料</para>
        ///</summary>
        public virtual bool IsVirtual { get; set; }

        ///<summary>
        ///<para>物料编码</para>
        ///</summary>
        public virtual string MaterialCode { get; set; }

        ///<summary>
        ///<para>数量</para>
        ///</summary>
        public virtual decimal Qty { get; set; }

        ///<summary>
        ///<para>生产批次</para>
        ///</summary>
        public virtual string ProductionOrderBatches { get; set; }

        ///<summary>
        ///<para>生产时间</para>
        ///</summary>
        public virtual DateTime? ProductionTime { get; set; }

        ///<summary>
        ///<para>品质【1：合格】【2：不合格】【4：报废】【8：待检】【16：让步合格】</para>
        ///</summary>
        public virtual string Sloc { get; set; }

        ///<summary>
        ///<para>空间名称路径</para>
        ///</summary>
        public virtual string SpaceNamePath { get; set; }

        ///<summary>
        ///<para>有效期</para>
        ///</summary>
        public virtual DateTime? ValidDateTime { get; set; }

        ///<summary>
        ///<para>仓库编码</para>
        ///</summary>
        public virtual string WarehouseCode { get; set; }

        /// <summary>
        /// 导入结果
        /// </summary>
        public string ImportResult { get; set; }
    }
}
